import service from "@/utils/request";

// 获取用户列表的接口
export const UserListApi = (params) => {
        return service({
            url: '/api/users/list',
            method: 'GET',
            // params:params
            params
        })
    }
    // 删除用户列表的接口
    // /api/users/dele
export const UserDeleApi = (params) => {
    return service({
        url: '/api/users/dele',
        method: 'GET',
        params
    })
}

// /api/users/add

export const UserAddApi = (data) => {
    return service({
        url: '/api/users/add',
        method: 'POST',
        data
    })
}

// /api/users/edit

export const UserEditApi = (data) => {
    return service({
        url: '/api/users/edit',
        method: 'POST',
        data
    })
}